<template>
  <!-- https://www.cnblogs.com/yalong/p/10935447.html -->
  <div>
    <component
      v-for="comp in comps"
      :key="comp.id"
      :is="allComps[comp]"/>
      22222
  </div>
</template>
<script>
import {
  ALLCOM
} from '@/utils/index.js'
export default {
  data () {
    return {
      // comps: '',
      // allComps: ''
      // comps: ALLCOM('./src/components/home/fruit/litchi')[1],
      // allComps: ALLCOM('./src/components/home/fruit/litchi')[0]
      comps: ALLCOM('litchi')[1],
      allComps: ALLCOM('litchi')[0]
    }
  },
  created () {
    // console.log(ALLCOM('./src/components/home/fruit/litchi'))
    console.log(ALLCOM('litchi'))
  }
}
</script>
